﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ClassLibrary.DAO;
using ClassLibrary.Entity;

public partial class UserControl_TinhNangNoiBat : System.Web.UI.UserControl
{
    TblItemsDAO ItemsDAO = new TblItemsDAO(Global.CONNECTION_STRING);
    TblItemDetailDAO itemDetailDAO = new TblItemDetailDAO(Global.CONNECTION_STRING);
    string id = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            loadTinhNang();
        }
    }
    private void loadTinhNang()
    {
        id = Request.QueryString["id"];
        rpTinhNangSP.DataSource = itemDetailDAO.GetDetailsItems(Global.ConvertToInt(id));
        rpTinhNangSP.DataBind();
    }
}
